package com.five.second_shop.mapper;

import com.five.second_shop.entity.Address;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AddressMapper {
    /**
     * 查询地址
     * @param address
     * @return
     */
    List<Address> queryAddress (Address address);

    /**
     * 更新地址信息
     * @param address
     * @return
     */
    Integer updateAddress(Address address);

    /**
     * 新增地址
     * @param address
     * @return
     */
    Integer insertAddress(Address address);

    /**
     * 根据id删除地址信息
     * @param id
     * @return
     */
    Integer delById(@Param("id") String id);


    Integer removeDefaultAdd (@Param(value = "ids") List ids);


    Address queryByuserid(@Param(value ="userid") String userid);
}
